package com.cakebackoffice.clientsoap.contract;


import org.ksoap2.serialization.SoapObject;

public class SimpleStore extends ContractObject {

    public String name;
    public int id;
    public String Ligne1;
    public String Ligne2;
    public String PostalCode;
    public String City;
    public String Country;

    public SimpleStore(com.cakebackoffice.Model.Store store) {
        this.name = store.getName();
        if (store.getRemoteID() != null)
            this.id = store.getRemoteID().intValue();
        if (store.getPlace() != null && store.getPlace().getAddress() != null) {
            this.Ligne1 = store.getPlace().getAddress().getLine1();
            this.Ligne2 = store.getPlace().getAddress().getLine2();
            this.PostalCode = store.getPlace().getAddress().getPostalCode();
            this.City = store.getPlace().getAddress().getCity();
            this.Country = store.getPlace().getAddress().getCountry();
        }
    }

    @Override
    public void fill(SoapObject soapObject) {
        //To change body of implemented methods use File | Settings | File Templates.
    }
}
